package bean;

import java.io.Serializable;


/**
 * activity
 * @author 
 */
public class Activity implements Serializable {
    private Integer activityid;

    private Integer hosterid;

    private String activitytitle;

    private Integer activityprice;

    private Integer activitynum;

    private String activitytime;

    private String activityadress;

    private Integer activityplay;

    private String activeintroduction;

    private String activityentertainment;

    private Integer activetype;

    private String activetime;

    private String hosttime;

    private Integer interest; 

    private String b;

    private String c;

    private Integer hostage; 
    
   

    private static final long serialVersionUID = 1L;

    public Integer getActivityid() {
        return activityid;
    }

    public void setActivityid(Integer activityid) {
        this.activityid = activityid;
    }

    public Integer getHosterid() {
        return hosterid;
    }

    public void setHosterid(Integer hosterid) {
        this.hosterid = hosterid;
    }

    public String getActivitytitle() {
        return activitytitle;
    }

    public void setActivitytitle(String activitytitle) {
        this.activitytitle = activitytitle;
    }

    public Integer getActivityprice() {
        return activityprice;
    }

    public void setActivityprice(Integer activityprice) {
        this.activityprice = activityprice;
    }

    public Integer getActivitynum() {
        return activitynum;
    }

    public void setActivitynum(Integer activitynum) {
        this.activitynum = activitynum;
    }

    public String getActivitytime() {
        return activitytime;
    }

    public void setActivitytime(String activitytime) {
        this.activitytime = activitytime;
    }

    public String getActivityadress() {
        return activityadress;
    }

    public void setActivityadress(String activityadress) {
        this.activityadress = activityadress;
    }

    public Integer getActivityplay() {
        return activityplay;
    }

    public void setActivityplay(Integer activityplay) {
        this.activityplay = activityplay;
    }

    public String getActiveintroduction() {
        return activeintroduction;
    }

    public void setActiveintroduction(String activeintroduction) {
        this.activeintroduction = activeintroduction;
    }

    public String getActivityentertainment() {
        return activityentertainment;
    }

    public void setActivityentertainment(String activityentertainment) {
        this.activityentertainment = activityentertainment;
    }

    public Integer getActivetype() {
        return activetype;
    }

    public void setActivetype(Integer activetype) {
        this.activetype = activetype;
    }

    public String getActivetime() {
        return activetime;
    }

    public void setActivetime(String activetime) {
        this.activetime = activetime;
    }

    public String getHosttime() {
        return hosttime;
    }

    public void setHosttime(String hosttime) {
        this.hosttime = hosttime;
    }

    public Integer getInterest() {
        return interest;
    }

    public void setInterest(Integer interest) {
        this.interest = interest;
    }

    public String getB() {
        return b;
    }

    public void setB(String b) {
        this.b = b;
    }

    public String getC() {
        return c;
    }

    public void setC(String c) {
        this.c = c;
    }

    public Integer getHostage() {
        return hostage;
    }

    public void setHostage(Integer hostage) {
        this.hostage = hostage;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Activity other = (Activity) that;
        return (this.getActivityid() == null ? other.getActivityid() == null : this.getActivityid().equals(other.getActivityid()))
            && (this.getHosterid() == null ? other.getHosterid() == null : this.getHosterid().equals(other.getHosterid()))
            && (this.getActivitytitle() == null ? other.getActivitytitle() == null : this.getActivitytitle().equals(other.getActivitytitle()))
            && (this.getActivityprice() == null ? other.getActivityprice() == null : this.getActivityprice().equals(other.getActivityprice()))
            && (this.getActivitynum() == null ? other.getActivitynum() == null : this.getActivitynum().equals(other.getActivitynum()))
            && (this.getActivitytime() == null ? other.getActivitytime() == null : this.getActivitytime().equals(other.getActivitytime()))
            && (this.getActivityadress() == null ? other.getActivityadress() == null : this.getActivityadress().equals(other.getActivityadress()))
            && (this.getActivityplay() == null ? other.getActivityplay() == null : this.getActivityplay().equals(other.getActivityplay()))
            && (this.getActiveintroduction() == null ? other.getActiveintroduction() == null : this.getActiveintroduction().equals(other.getActiveintroduction()))
            && (this.getActivityentertainment() == null ? other.getActivityentertainment() == null : this.getActivityentertainment().equals(other.getActivityentertainment()))
            && (this.getActivetype() == null ? other.getActivetype() == null : this.getActivetype().equals(other.getActivetype()))
            && (this.getActivetime() == null ? other.getActivetime() == null : this.getActivetime().equals(other.getActivetime()))
            && (this.getHosttime() == null ? other.getHosttime() == null : this.getHosttime().equals(other.getHosttime()))
            && (this.getInterest() == null ? other.getInterest() == null : this.getInterest().equals(other.getInterest()))
            && (this.getB() == null ? other.getB() == null : this.getB().equals(other.getB()))
            && (this.getC() == null ? other.getC() == null : this.getC().equals(other.getC()))
            && (this.getHostage() == null ? other.getHostage() == null : this.getHostage().equals(other.getHostage()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getActivityid() == null) ? 0 : getActivityid().hashCode());
        result = prime * result + ((getHosterid() == null) ? 0 : getHosterid().hashCode());
        result = prime * result + ((getActivitytitle() == null) ? 0 : getActivitytitle().hashCode());
        result = prime * result + ((getActivityprice() == null) ? 0 : getActivityprice().hashCode());
        result = prime * result + ((getActivitynum() == null) ? 0 : getActivitynum().hashCode());
        result = prime * result + ((getActivitytime() == null) ? 0 : getActivitytime().hashCode());
        result = prime * result + ((getActivityadress() == null) ? 0 : getActivityadress().hashCode());
        result = prime * result + ((getActivityplay() == null) ? 0 : getActivityplay().hashCode());
        result = prime * result + ((getActiveintroduction() == null) ? 0 : getActiveintroduction().hashCode());
        result = prime * result + ((getActivityentertainment() == null) ? 0 : getActivityentertainment().hashCode());
        result = prime * result + ((getActivetype() == null) ? 0 : getActivetype().hashCode());
        result = prime * result + ((getActivetime() == null) ? 0 : getActivetime().hashCode());
        result = prime * result + ((getHosttime() == null) ? 0 : getHosttime().hashCode());
        result = prime * result + ((getInterest() == null) ? 0 : getInterest().hashCode());
        result = prime * result + ((getB() == null) ? 0 : getB().hashCode());
        result = prime * result + ((getC() == null) ? 0 : getC().hashCode());
        result = prime * result + ((getHostage() == null) ? 0 : getHostage().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", activityid=").append(activityid);
        sb.append(", hosterid=").append(hosterid);
        sb.append(", activitytitle=").append(activitytitle);
        sb.append(", activityprice=").append(activityprice);
        sb.append(", activitynum=").append(activitynum);
        sb.append(", activitytime=").append(activitytime);
        sb.append(", activityadress=").append(activityadress);
        sb.append(", activityplay=").append(activityplay);
        sb.append(", activeintroduction=").append(activeintroduction);
        sb.append(", activityentertainment=").append(activityentertainment);
        sb.append(", activetype=").append(activetype);
        sb.append(", activetime=").append(activetime);
        sb.append(", hosttime=").append(hosttime);
        sb.append(", interest=").append(interest);
        sb.append(", b=").append(b);
        sb.append(", c=").append(c);
        sb.append(", hostage=").append(hostage);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}